package com._51cto.healthy.mapper;

import com._51cto.healthy.base.BaseMapper;
import com._51cto.healthy.pojo.Permission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PermissionMapper extends BaseMapper<Permission> {
    //系统管理权限管理查询
    List<Permission> queryPermissionsAll(@Param("query") String query);
    void insertPermissionIds(@Param("id") Integer id,@Param("pId") Integer pId);
    //角色列表查询所有查询二级目录permission表
    List<Permission> queryByPermission(@Param("id") Integer id);
}
